from django.contrib.auth.mixins import LoginRequiredMixin
from django.http import JsonResponse

class UserName(LoginRequiredMixin):
    def handle_no_permission(self):
        return JsonResponse({
            'errno': '4101',
            "errmsg": '未登录'
        })









